import request from '@/utils/request'

// 广告图列表 -分页
export const getImgListApi = data => {
  return request.get('/ydd_advimg/list', {
    params: data
  })
}

// 广告图添加
export const addImgApi = data => {
  return request.post('/ydd_advimg/add', data)
}

// 广告图详情
export const getImgInfoApi = id => {
  return request.get('/ydd_advimg/rowInfo?id=' + id)
}

// 广告图删除
export const delImgApi = id => {
  return request.get('/ydd_advimg/del?id=' + id)
}

// 获取所有广告位
export const getadvposAllApi = () => {
  return request.get('/ydd_advpos/all')
}

// 修改广告位
export const editImgApi = data => {
  return request.post('/ydd_advimg/update', data)
}
